package com.studykun.client.util;

import com.google.gwt.user.client.ui.Widget;
import com.studykun.client.model.Agent;

public interface Room extends AdmitHandler, EvictHandler {
  public void echo(
      final EchoType echoType,
      final Agent agent,
      final String text);
  
  public void echo(
      final EchoType echoType,
      final Agent agent,
      final Widget widget);
  
  public void addEchoListener(
      final EchoListener echoListener);
  
  public void removeEchoListener(
      final EchoListener echoListener);
  
  public Presence admit(
      final Agent agent);
  
  public void evict(
      final Agent agent);
  
  public boolean hasPresent(
      final Agent agent);
}
